Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.8] bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) #14902

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 22, 2019

  • Clear name and parent of mock in autospecced objects used with attach_mock

  • Add NEWS entry

  • Fix reversed order of comparison

  • Test child and standalone function calls

  • Use a helper function extracting mock to avoid code duplication and refactor tests.
    (cherry picked from commit 7397cda)

Co-authored-by: Xtreak tir.karthi@gmail.com

https://bugs.python.org/issue21478

…s child with attach_mock (GH 14688)

* Clear name and parent of mock in autospecced objects used with attach_mock

* Add NEWS entry

* Fix reversed order of comparison

* Test child and standalone function calls

* Use a helper function extracting mock to avoid code duplication and refactor tests.
(cherry picked from commit 7397cda)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
@miss-islington
Copy link
Contributor Author

@tirkarthi and @cjw296: Status check is done, and it's a success ✅ .

@cjw296 cjw296 merged commit 22fd679 into python:3.8 Jul 22, 2019
@miss-islington miss-islington deleted the backport-7397cda-3.8 branch July 22, 2019 07:59
@miss-islington
Copy link
Contributor Author

@tirkarthi and @cjw296: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@tirkarthi and @cjw296: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants